package com.example.system_backend.repository;

import com.example.system_backend.entity.TeethTreat;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeethTreatRepository extends JpaRepository<TeethTreat, Integer> {
    public TeethTreat findByTeethIdAndTreatId(Integer teethId, Integer treatId);
    public List<TeethTreat> findAllByTreatId(Integer treatId);
}
